package com.qujia.station.enums;

public enum PrintEnum {
       YILIANYUN(1,"易联云"),
       FEIE(2,"飞鹅"),
       YILIANYUNK4(3,"易联云k4"),
       ;

       private Integer code;
       private String type;

       PrintEnum(Integer code, String type) {
              this.code = code;
              this.type = type;
       }

       public Integer getCode() {
              return code;
       }

       public void setCode(Integer code) {
              this.code = code;
       }

       public String getType() {
              return type;
       }

       public void setType(String type) {
              this.type = type;
       }


       public static PrintEnum getByCode(String code) {
              for (PrintEnum value : values()) {
                     if (value.getCode().equals(Integer.valueOf(code))) {
                            return value;
                     }

              }
              return  null;
       }

}
